Set VirtualBox USB Tablet to GDK_SOURCE_MOUSE
authorTakao Fujiwara <tfujiwar@redhat.com>
Tue, 8 Mar 2016 13:18:06 +0000 (22:18 +0900)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 8 Mar 2016 16:11:51 +0000 (11:11 -0500)
The virtual host assigns the name of the mouse device to
"VirtualBox USB Tablet" in VirtualBox and we'd use that device as mouse.
If not, GtkTooltip is not enabled.

https://bugzilla.gnome.org/show_bug.cgi?id=763017

gdk/x11/gdkdevicemanager-xi2.c

index b314d438042831cbf3a030558443e25b4e30111e..ad6babe883e670ec594f9dffae9b79ed7ef2e6b0 100644 (file)
@@ -432,6 +432,7 @@ create_device (GdkDeviceManager *device_manager,
                !strstr (tmp_name, "pointer") &&
                !strstr (tmp_name, "qemu usb tablet") &&
                !strstr (tmp_name, "spice vdagent tablet") &&
+               !strstr (tmp_name, "virtualbox usb tablet") &&
                has_abs_axes (display, dev->classes, dev->num_classes))
         input_source = GDK_SOURCE_TOUCHSCREEN;
       else